package com.aizuda.boot.modules.business.approval.entity.vo;

import com.aizuda.boot.modules.business.feishu.domain.UserVo;
import com.aizuda.bpm.engine.core.enums.InstanceState;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author sangyirong
 * @ClassName ContractListVO
 * @Version 1.0
 * @Date 2025/7/14 17:27
 */
@Data
@Schema(description = "合同列表VO")
public class NegotiationListVO {

    @Schema(description = "合同id")
    private Integer contractId;

    @Schema(description = "合同名称")
    private String contractName;

    @Schema(description = "合同编号")
    private String contractNo;

    @Schema(description = "协商状态")
    private String status;

    @Schema(description = "申请人")
    private UserVo createUser;

    @Schema(description = "当前处理人")
    private List<UserVo> currentUser;

    @Schema(description = "提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @Schema(description = "合同类型")
    private String contractType;

    @Schema(description = "交易方")
    private String counterparty;

    @Schema(description = "流程实例id")
    private Long instanceId;

    @Schema(description = "任务id")
    private Long taskId;

    /**
     * 状态 0，活动 1，结束 更多查看 {@link InstanceState}
     */
    @Schema(description = "流程实例状态")
    protected Integer instanceState;

}
